package cc.sunwl.study.springboot2.service;

import cc.sunwl.study.springboot2.entity.Article;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface ArticleService {
    Mono<Article> get(String id);

    Mono<Article> add(Article entity);

    Mono<Article> put(Article entity);

    Mono<Void> delete(String id);

    Flux<Article> list(int page, int size);
}
